package com.qf.sportsevent.util;

import android.support.v4.util.Pair;

import com.qf.sportsevent.BR;
import com.qf.sportsevent.R;

import java.util.HashMap;
import java.util.Map;


/**
 * Created by Administrator on 2016/12/16.
 */

public class RecyclerItemLayoutManager {
    public static Map<Integer,Pair<Integer,Integer>> getLayoutMap(){
        Map<Integer,Pair<Integer,Integer>> map=new HashMap<>();
        map.put(0,Pair.create(R.layout.news_item_1_vp, BR.holder));
        map.put(1,Pair.create(R.layout.news_item_2_contest,BR.contestList));
        map.put(2,Pair.create(R.layout.news_item_3_image, BR.newsItem3));
        map.put(3,Pair.create(R.layout.news_item_4_images, BR.newsItem4));
        map.put(4,Pair.create(R.layout.news_item_5_image_large, BR.newsItem5));

        map.put(5,Pair.create(R.layout.news_special_title,BR.titleData));
        map.put(6,Pair.create(R.layout.news_special_red_tag,BR.tag));
        map.put(7,Pair.create(R.layout.news_item_2_contest_each,BR.contestEntity));

        map.put(8,Pair.create(R.layout.news_detail_head,BR.newsItem));
        map.put(9,Pair.create(R.layout.news_detail_tag,BR.detailTag));
        map.put(10,Pair.create(R.layout.news_detail_comment,BR.commentsEntity));

        map.put(11,Pair.create(R.layout.subscribe_head,BR.headText));
        map.put(12,Pair.create(R.layout.subscribe_item,BR.tagName));
        return map;
    }
}
